package com.wxproject.demo.Entity;

import com.wxproject.demo.Utils.DateUtils;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class UserEntity {
    private Long id;
    private String codeId;
    @NotBlank(message = "用户名不能为空")
    private String username;
    private String phone;
    @NotBlank(message = "密码不能为空")
    private String password;
    private String nickname;
    @NotBlank(message = "邮箱不能为空")
    @Email
    private String email;
    private String createTime = DateUtils.getDate();


}
